不知道为什么,mysql没法启动了,试了很多种方法,最后决定还是重装吧- -

先卸载mysql

  1. sudo rm /usr/local/mysql (这一步: 必须的)

  2. sudo rm -rf /usr/local/mysql* (这一步: 必须的)

  3. sudo rm -rf /Library/StartupItems/MySQLCOM (这一步: 可选)

  4. sudo rm -rf /Library/PreferencePanes/My* (这一步: 可选)

  5. vim /etc/hostconfig (and removed the line MYSQLCOM=-YES-) (这一步: 可选)

  6. rm -rf ~/Library/PreferencePanes/My*

  7. sudo rm -rf /Library/Receipts/mysql*

  8. sudo rm -rf /Library/Receipts/MySQL*

  9. sudo rm -rf /var/db/receipts/com.mysql.*

卸载完然后重装就OK了


lapsec
756 声望25 粉丝